package cn.edu.scau.cmi.zhangweiming.SingletonClient;
import java.net.URL;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.ResourceBundle;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class SingletonClient_controller {
	   @FXML
	   private Button myButton;
	   @FXML
	   private TextField myTextField;
	   @FXML
	   private TextArea	myTextArea;

	   public void showChairman(ActionEvent event) {	   
		   String text=myTextField.getText();	   
		   Chairman chairman=Chairman.getInstance(text);
		   myTextArea.appendText(chairman.getName()+"\n");
	   }
}
